<div id="menu_content" class="content_menu">
  <ul>
    <% if controller.action_name == 'list' %>
      <li><%= link_to t(:add_x, :x => Subject.human_name), add_subject_to_plan_path(@educational_plan) %></li>
    <%else%>
      <% if controller.action_name != 'new' && controller.action_name != 'edit' %>
        <li><%= link_to t(:create_y, :y => Subject.human_name), new_subject_path %></li>
      <% end %>
      <% if controller.action_name == 'show' %>
        <li><%= link_to t(:edit_x, :x => Subject.human_name), edit_subject_path(@subject) %></li>
        <li><%= link_to t(:delete_x, :x => Subject.human_name), @subject, :confirm => t(:prompt_delete_x, :x =>  @subject.name), :method => :delete %></li>
        <li><%= link_to t(:to_index_x, :x => Subject.human_name(:count => 2)), plan_subjects_path(@subject.educational_plan) %></li>
      <% end %>
      <% if controller.action_name != 'index' %>
        <li><%= link_to t(:back_to_index), subjects_path %></li>
      <% end %>
    <% end %>
  </ul>
</div>

<div class="spacer"></div>